    <meta charset="UTF-8">

<script src="./utils.js"></script>
<h1>日期格式化</h1>
<div id="demo1"></div>
<script>
    var result = ''
    result += "dateFormat('2022-4-14 11:11:11') // "+dateFormat('2022-4-14 11:11:11')+"<br>"
    result += "dateFormat('2022-3-24 11:11:11') // "+dateFormat('2022-3-24 11:11:11')+"<br>"
    result += "dateFormat('2021-2-14 11:11:11') // "+dateFormat('2022-2-14 11:11:11')+"<br>"
    result += "dateFormat('2021-4-10 11:11:11') // "+dateFormat('2021-4-10 11:11:11')+"<br>"
    document.querySelector('#demo1').innerHTML = result
</script>
<h1>字符串补0(不足两位数时)</h1>
<div id="demo2"></div>
<script>
    var result = ''
    result += "zeroize(3) // " +zeroize(3)+"<br>"
    result += "zeroize(6) // " +zeroize(6)+"<br>"
    result += "zeroize(9) // " +zeroize(9)+"<br>"
    document.querySelector('#demo2').innerHTML = result
</script>
<h1>快速获取当前时间</h1>
<div id="demo3"></div>
<script>
    var result = ''
    result += "format('YmdHis') // "+format('YmdHis')+"<br>"
    result += "format('Y-m-d H:i:s') // "+format('Y-m-d H:i:s')+"<br>"
    result += "format('Y/m/d') // "+format('Y/m/d')+"<br>"
    result += "format('Y/m/d H:i:s') // "+format('YY/m/d H:i:s')+"<br>"
    result += "format('Y年m月d日 H:i:s') // "+format('Y年m月d日 H:i:s')+"<br>"
    document.querySelector('#demo3').innerHTML = result
</script>
<h1>获取随机颜色</h1>
<div id="demo4"></div>
<script>
    var result = ''
    result += "randomColor // "+randomColor()+"<br>"
    result += "randomColor // "+randomColor()+"<br>"
    result += "randomColor // "+randomColor()+"<br>"
    document.querySelector('#demo4').innerHTML = result
</script>
<h1>判断浏览器内核</h1>
<div id="demo5"></div>
<script>
    document.querySelector('#demo5').innerHTML = "browser() // "+browser()
</script>
<h1>判断是PC还是M端</h1>
<div id="demo6"></div>
<script>
    document.querySelector('#demo6').innerHTML = "browserPc() // "+browserPc()
</script>
<h1>判断是否是微信浏览器</h1>
<div id="demo7"></div>
<script>
    document.querySelector('#demo7').innerHTML = "browserWx() // "+browserWx()
</script>
<h1>获取标签非行内样式</h1>
<div id="demo8"></div>
<script>
    var divObj = document.querySelector('#demo8')
    var result = ''
    result += "getStyle(divObj,'color') // "+getStyle(divObj,'color')+"<br>"
    result += "getStyle(divObj,'color') // "+getStyle(divObj,'fontSize')+"<br>"
    document.querySelector('#demo8').innerHTML = result
</script>
